package com.shelpe.services.lexicon.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import com.shelpe.services.lexicon.po.AutoProductQueue.QueuePK;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Entity(name="auto_pro_product_queue")
@IdClass(QueuePK.class)
@Setter
@Getter
public class AutoProductQueue {

	@Id
	@Column(name="product_id")
	private long productID;
	@Id
	@Column(name="campaign_id")
	private long campaignID;
	
	@Column(name="user_id")
	private long userID;
	@Column(name="adgroup_id")
	private long adgroupID;
	@Column(name="default_price")
	private int defaultPrice;
	@Column(name="cand_words")
	private String candWords;
	@Column(name="used_words")
	private String usedWords;
	
	@Data
	public static class QueuePK implements Serializable{
		private static final long serialVersionUID = 1L;
		@Column(name="product_id")
		private long productID;
		@Column(name="campaign_id")
		private long campaignID;
	}
}
